Skip to main content

T

Checks whether a value is text, and returns the text if it is, or returns double quotes (empty text) if it is not.

Syntax

expression.T(arg1);

expression - A variable that represents a ApiWorksheetFunction class.

Parameters

NameRequired/OptionalData typeDefaultDescription
arg1RequiredApiRangeApiNamenumber

Returns

ApiRange | ApiName | string

Example

var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
oWorksheet.GetRange("A1").SetValue(oFunction.T("date and time"));